package com.lxy.elasticsearch200.base.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 只包含ID集合的dto对象
 *
 * @author admin
 * @since 2023-5-19
 */
public class BaseIdListDto extends BaseDto {

    /**
     * ID集合
     */
    @NotNull(message = "ID不允许为空")
    @Size(min = 1, message = "ID至少需要一个")
    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }
}
